package com.landiao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.landiao.entities.ServiceItemPrice;

public interface ServiceItemPriceMapper extends BaseMapper<ServiceItemPrice,String>{
    int deleteByPrimaryKey(String serviceItemPriceId);

    int insert(ServiceItemPrice record);

    int insertSelective(ServiceItemPrice record);

    ServiceItemPrice selectByPrimaryKey(String serviceItemPriceId);

    int updateByPrimaryKeySelective(ServiceItemPrice record);

    int updateByPrimaryKey(ServiceItemPrice record);
    
    /**
     * 根据服务项目ID获取价格明细，不包含套餐内价格
     * @param serviceItemId
     * @return
     */
    List<ServiceItemPrice> selectWithNoPackageByItemId(String serviceItemId);
    
    void deleteWithNoPackageByItemId(String serviceItemId);
    
    List<ServiceItemPrice> selectByPackageId(String packageId);
    
    void deleteByPackageId(String packageId);
    
    /**
     * 根据服务项目ID获取价格明细，不包含套餐内价格
     * @param serviceItemId
     * @return
     */
    List<ServiceItemPrice> selectByShopId(String shopId);
    
    List<ServiceItemPrice> selectByShopIdAndPackage(@Param("shopId")String shopId,@Param("packageId")String packageId);
}